public class CompareTest{
public static void main(String[] args){
    String str1 ="192.168.0.100:25678";
    String str2 = "8.8.8.8:8080";
    System.out.println(str1.compareTo(str2));

}
}